<?php
class p1_score extends BaseModel implements Retrievable {

	var $calculated;
	var $event;
	var $previous_rank;
	var $score;
	var $votes;
	
    public function p1_score($values) {
        parent::__construct($values);
    }

    public function validate() {
        $errors = Array();
		return (count($errors) === 0 ? true : $errors);
    }

    public static function get($id, $primaryKey='id') {
        return parent::get($id, __CLASS__, $primaryKey);
    }
    
    public static function getAll($searchArray=Array(), $sortArray=Array()) {
        return parent::getAll($searchArray, $sortArray, __CLASS__);
    }
    
}
?>